<template>
  <div>
    <eat-header @setFoodList="getFoodList"></eat-header>
<!--    <eat-content :food-list="allFoodList"></eat-content>-->
    <eat-content></eat-content>
  </div>
</template>

<script>
import EatHeader from "../../components/HomeEat/EatHeader";
import EatContent from "@/components/HomeEat/EatContent";

export default {
  name: "HomeEat",
  components: {
    EatHeader,
    EatContent
  },
  data() {
    return {
      allFoodList: []
    }
  },
  methods: {
    getFoodList(foodList) {
      this.allFoodList = foodList
    }
  }
}
</script>

<style scoped>

</style>